package com.zelix;

import java.awt.event.*;
import java.util.EventObject;

class fo
        implements ActionListener, KeyListener {

    private final q2 a;

    fo(q2 q2_1) {
        a = q2_1;
    }

    public void actionPerformed(ActionEvent actionevent) {
        if (actionevent.getSource() == a.q) {
            a.h();
            a.f();
        } else {
            a.i();
            a.g();
        }
    }

    public void keyPressed(KeyEvent keyevent) {
        if (keyevent.getKeyCode() == 10) {
            if (keyevent.getSource() == a.q) {
                a.h();
                a.f();
            } else {
                a.i();
                a.g();
            }
        }
    }

    public void keyReleased(KeyEvent keyevent) {
    }

    public void keyTyped(KeyEvent keyevent) {
    }
}